﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BookSystem
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        private void LoginForm_Load(object sender, EventArgs e)
        {

        }
        //管理员
        private void but_admin_MouseMove_1(object sender, MouseEventArgs e)
        {
            this.ptbox_admin.Size = new System.Drawing.Size(88, 98);
            this.ptbox_admin.Location = new System.Drawing.Point(56, 85);
            this.ptbox_admin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
        }

        private void but_admin_MouseLeave_1(object sender, EventArgs e)
        {
            this.ptbox_admin.Size = new System.Drawing.Size(82, 90);
            this.ptbox_admin.Location = new System.Drawing.Point(59, 89);
            this.ptbox_admin.BorderStyle = System.Windows.Forms.BorderStyle.None;
        }

        private void but_admin_Click_1(object sender, EventArgs e)
        {
            Type.type = this.but_admin.Tag.ToString();

            LoginMainForm form = new LoginMainForm();
            form.Show();
            this.Hide();
        }

        //读者用户
        private void but_user_MouseMove(object sender, MouseEventArgs e)
        {
            this.ptbox_user.Size = new System.Drawing.Size(88, 98);
            this.ptbox_user.Location = new System.Drawing.Point(205, 85);
            this.ptbox_user.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
        }

        private void but_user_MouseLeave(object sender, EventArgs e)
        {
            this.ptbox_user.Size = new System.Drawing.Size(82, 90);
            this.ptbox_user.Location = new System.Drawing.Point(208, 89);
            this.ptbox_user.BorderStyle = System.Windows.Forms.BorderStyle.None;
        }

        private void but_user_Click(object sender, EventArgs e)
        {
            Type.type = this.but_user.Tag.ToString();

            LoginMainForm form = new LoginMainForm();
            form.Show();
            this.Hide();
        }
    }
}
